package com.sk.weichat.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author lzs
 * @date 2019/9/17
 * Email:343067508@qq.com
 **/
public class ChatBgBean implements Parcelable {

    public static final String Parcelable_Key = "ChatBgBean_Parcelable_Key";

    public ChatBgBean() {
    }

    /**
     * createTime : 1564111580
     * id : 5d3a72dcdb3dfb2324a5136a
     * numbserDownloads : 0
     * numbserUsers : 0
     * originalgraph : http://192.168.1.251:8089/group1/M00/00/0E/wKgB-106ctyAWRFjADDwATGiZ2Q900.jpg
     * remarks : 华为P30
     * sort : 3
     * status : 1
     * thumbnail : http://192.168.1.251:8089/group1/M00/00/0E/wKgB-106ctyASCOlAAAfnPuFhT40732257
     * updateTime : 1564127318
     */

    public boolean isChecked;
    private int createTime;
    private String id = "";
    private int numbserDownloads;
    private int numbserUsers;
    private String originalgraph = "";
    private String remarks = "";
    private int sort;
    private int status;
    private String thumbnail = "";
    private int updateTime;

    public long progress;
    public long max;

    public boolean isDownloading = false;

    protected ChatBgBean(Parcel in) {
        isChecked = in.readByte() != 0;
        createTime = in.readInt();
        id = in.readString();
        numbserDownloads = in.readInt();
        numbserUsers = in.readInt();
        originalgraph = in.readString();
        remarks = in.readString();
        sort = in.readInt();
        status = in.readInt();
        thumbnail = in.readString();
        updateTime = in.readInt();
        progress = in.readLong();
        max = in.readLong();
        isDownloading = in.readByte() != 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeByte((byte) (isChecked ? 1 : 0));
        dest.writeInt(createTime);
        dest.writeString(id);
        dest.writeInt(numbserDownloads);
        dest.writeInt(numbserUsers);
        dest.writeString(originalgraph);
        dest.writeString(remarks);
        dest.writeInt(sort);
        dest.writeInt(status);
        dest.writeString(thumbnail);
        dest.writeInt(updateTime);
        dest.writeLong(progress);
        dest.writeLong(max);
        dest.writeByte((byte) (isDownloading ? 1 : 0));
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<ChatBgBean> CREATOR = new Creator<ChatBgBean>() {
        @Override
        public ChatBgBean createFromParcel(Parcel in) {
            return new ChatBgBean(in);
        }

        @Override
        public ChatBgBean[] newArray(int size) {
            return new ChatBgBean[size];
        }
    };

    public int getCreateTime() {
        return createTime;
    }

    public void setCreateTime(int createTime) {
        this.createTime = createTime;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getNumbserDownloads() {
        return numbserDownloads;
    }

    public void setNumbserDownloads(int numbserDownloads) {
        this.numbserDownloads = numbserDownloads;
    }

    public int getNumbserUsers() {
        return numbserUsers;
    }

    public void setNumbserUsers(int numbserUsers) {
        this.numbserUsers = numbserUsers;
    }

    public String getOriginalgraph() {
        return originalgraph;
    }

    public void setOriginalgraph(String originalgraph) {
        this.originalgraph = originalgraph;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getThumbnail() {
        return thumbnail;
    }

    public void setThumbnail(String thumbnail) {
        this.thumbnail = thumbnail;
    }

    public int getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(int updateTime) {
        this.updateTime = updateTime;
    }


}
